/**
The routing of this file will not show the layout.
It is an independent new page.
the contents of the file still need to log in to access
 */
import type { AppRouteModule } from '/@/router/types';

// test
// http:ip:port/main-out
export const mainOutRoutes: AppRouteModule[] = [
  {
    path: '/processHandleView',
    name: 'processHandleView',
    component: () => import('/@/views/pages/processManagement/processHandleView.vue'),
    meta: {
      orderNo: 10,
      title: '流程处理',
    },
  },
  {
    path: '/flowDebugPage',
    name: 'flowDebugPage',
    component: () => import('/@/views/pages/processManagement/flowDebug.vue'),
    meta: {
      orderNo: 10,
      title: '流程调试',
    },
  },
  {
    path: '/changePassword',
    name: 'changePassword',
    component: () => import('/@/views/pages/common/ChangePassword.vue'),
    meta: {
      orderNo: 10,
      title: '修改密码',
    },
  },
  {
    path: '/resetPassword',
    name: 'resetPassword',
    component: () => import('/@/views/pages/common/ResetPassword.vue'),
    meta: {
      orderNo: 10,
      title: '重置密码',
    },
  },
  {
    path: '/qrcodeLogin',
    name: 'QrcodeLogin',
    component: () => import('/@/views/pages/common/QrcodeLogin.vue'),
    meta: {
      orderNo: 10,
      title: '扫码登录',
    },
  },
  {
    path: '/completeInfo',
    name: 'CompleteInfo',
    component: () => import('/@/views/pages/common/CompleteInfo.vue'),
    meta: {
      orderNo: 10,
      title: '填写邮箱信息',
    },
  },
  // {
  //   path: '/testDemo',
  //   name: 'testDemo',
  //   component: () => import('/@/views/demo/test/Test.vue'),
  //   meta: {
  //     orderNo: 10,
  //     title: 'test',
  //   },
  // },
  {
    path: '/jump',
    name: 'Jump',
    component: () => import('/@/views/pages/common/Jump.vue'),
    meta: {
      orderNo: 10,
      title: '跳转',
    },
  },
  {
    path: '/designViewPage',
    name: 'DesignViewPage',
    component: () =>
      import(
        '/@/views/system/workflow/flowManagement/modules/flowPicture/modules/DesignViewPage.vue'
      ),
    meta: {
      title: '流程设计',
    },
  },
  {
    path: '/formEditor',
    name: 'formEditor',
    component: () => import('/@/views/formDesigner/FormEditor.vue'),
    meta: {
      title: '表单设计',
    },
  },
  {
    path: '/moduleSetup',
    name: 'moduleSetup',
    component: () => import('/@/views/pages/managerPage/index.vue'),
    meta: {
      title: '模块',
      ignoreKeepAlive: true, // 缓存
    },
  },
  {
    path: '/webOffice',
    name: 'webOffice',
    component: () => import('../../views/pages/webOffice/index.vue'),
    meta: {
      title: 'Web Office文档',
    },
  },
  {
    path: '/designScript',
    name: 'DesignScript',
    component: () =>
      import(
        '/@/views/system/workflow/flowManagement/modules/flowPicture/modules/modules/nodeEdit/DesignScript.vue'
      ),
    meta: {
      title: '设计器',
    },
  },
  {
    path: '/runScript',
    name: 'RunScript',
    component: () =>
      import(
        '/@/views/system/workflow/flowManagement/modules/flowPicture/modules/modules/eventDesign/modules/modules/runScript/RunScript.vue'
      ),
    meta: {
      title: '运行结果',
    },
  },
  {
    path: '/formDesigner',
    name: 'FormDesigner',
    component: () => import('/@/views/formDesigner/index.vue'),
    meta: {
      title: '表单设计',
    },
  },
  {
    path: '/formViewDesign',
    name: 'FormViewDesign',
    component: () => import('/@/views/system/workflow/formView/formViewDesign/index'),
    meta: {
      title: '视图',
    },
  },
  // {
  //   path: '/ueditorDesigner',
  //   name: 'UeditorDesigner',
  //   component: () => import('/@/views/ueditorDesigner/index.vue'),
  //   meta: {
  //     title: '表单设计',
  //   },
  // },
  {
    path: '/ueditorFormDesigner',
    name: 'UeditorFormDesigner',
    component: () => import('/@/views/ueditorFormDesigner/index.vue'),
    meta: {
      title: '表单设计',
    },
  },
  {
    path: '/modulePage', // 可嵌入第三方系统的iframe
    name: 'modulePage',
    component: () => import('/@/views/pages/smartModule/smartModuleTreeView.vue'),
    meta: {
      title: '模块',
    },
  },
  {
    path: '/processListPage', // 可嵌入第三方系统的iframe
    name: 'processListPage',
    component: () => import('/@/views/pages/processManagement/process.vue'),
    meta: {
      title: '流程',
    },
  },
  {
    path: '/processHandlePage', // 可嵌入第三方系统的iframe
    name: 'processHandlePage',
    component: () => import('/@/views/pages/processManagement/processHandleView.vue'),
    meta: {
      title: '流程处理',
    },
  },
  {
    path: '/processShowPage', // 可嵌入第三方系统的iframe
    name: 'processShowPage',
    component: () => import('/@/views/pages/processManagement/processShowView.vue'),
    meta: {
      title: '流程查看',
    },
  },
];

export const mainOutRouteNames = mainOutRoutes.map((item) => item.name);
